In getAppPosition it's not needed to continue looking for an app in the
page manager if the app is found in a page.
This patch breaks the search loop just after the first ocurrence is
found.
https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1434
for (let pageIndex = 0; pageIndex < this._pages.length; pageIndex++) {
const pageData = this._pages[pageIndex];
- if (!(appId in pageData))
- continue;
-
- page = pageIndex;
- position = pageData[appId].position;
+ if (appId in pageData) {
+ page = pageIndex;
+ position = pageData[appId].position;
+ break;
+ }
}
return [page, position];